home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_item_bacta.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
849b
|
47 lines
# Jedi Knight Cog Script
#
# ITEM_BACTA.COG
#
# INVENTORY script - Bacta Tank
#
# [CYW & YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
sound bactaSnd=BactaUse01.WAV
thing player
message activated
end
# ========================================================================================
code
activated:
player = GetSourceRef();
if(GetInv(player, 40) > 0.0)
{
if(GetHealth(player) < 100)
{
// Print("Using Bacta");
jkPrintUNIString(player, 250);
PlaySoundThing(bactaSnd, player, 1.0, -1, -1, 128);
HealThing(player, 30.0);
ChangeInv(player, 40, -1.0);
if(GetInv(player, 40) == 0) SetInvAvailable(player, 40, 0);
}
}
Return;
end